package com.sky.service;

import com.sky.dto.*;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderVO;

public interface OrderService {
    Orders submit(OrdersSubmitDTO ordersSubmitDTO);

     /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    OrderVO getById(Long id);

    void cancelOrder(Long id) throws Exception;


    PageResult page(OrdersPageQueryDTO ordersPageQueryDTO);

    void repetition(Long id);

    void reminder(Long id);

    PageResult adminConditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderStatisticsVO statistic();


    void confirm(OrdersConfirmDTO ordersConfirmDTO);

    void rejection(OrdersRejectionDTO ordersConfirmDTO) throws Exception;

    void delivery(Long id);


    void adminCancelOrder(OrdersCancelDTO ordersCancelDTO);

    void complete(Long id);
}
